﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Aliphant.Mvvm.XEvent.UI;

namespace Aliphant.UI.Wallpaper.Models
{
    public class PictureInfo : BindableBase
    {
        public PictureInfo() { }

        public PictureInfo(string name)
        {
            this.Name = name;
        }

        private string _name = string.Empty;
        public string Name { get => _name; set => SetProperty(ref _name, value); }

        private string _middle = string.Empty;
        public string Middle { get => _middle; set => SetProperty(ref _middle, value); }

        private string _preview = string.Empty;
        public string Preview { get => _preview; set => SetProperty(ref _preview, value); }

        public string Url { get; set; } = string.Empty;

        public readonly int MiddleSize = 960;

        public readonly int PreviewSize = 240;

        public void Clear()
        {
            Middle = string.Empty;
            Preview = string.Empty;
            Url = string.Empty;
        }
    }
}
